/*
 *
 */
package org.jiscinvolve.astrodabis.barberry.common.core;

import org.jiscinvolve.astrodabis.barberry.common.core.exception.*;

public class LongIdent
extends SimpleIdent<Long>
implements Identifier
    {
    public static Identifier create(String value)
        {
        return new LongIdent(
            value
            );
        }

    public static Identifier create(Long value)
        {
        return new LongIdent(
            value
            );
        }

    public static Long convert(String value)
        {
        try {
            return Long.valueOf(
                value
                );
            }
        catch (NumberFormatException ouch)
            {
            throw new IdentFormatException(
                ouch
                );
            }
        }

    public LongIdent(String value)
        {
        this(
            convert(
                value
                )
            );
        }

    public LongIdent(Long value)
        {
        super(
            value
            );
        }
    }

